home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12058 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  805 b 

  1. Path: cedar.cic.net!anderson
  2. From: anderson@cedar.cic.net (Mark Anderson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Passing array to DLL, Help
  5. Date: 18 Mar 1996 02:22:56 GMT
  6. Organization: GreatLinks -- Pioneering Partners Project
  7. Message-ID: <4iihe0$kie@lastactionhero.rs.itd.umich.edu>
  8. NNTP-Posting-Host: cedar.cic.net
  9. NNTP-Posting-User: anderson
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. I wrote a DLL, which has a function taking an array of float and 
  13. returning an array of float. The declaration I used is like:
  14.     float* Func(float*, .......)
  15. But every time I called it from the test program, the arguement array 
  16. seems to be corrupted( I used "step into" to debug) and it give General 
  17. Protection Fault. Anyone has any idea why this happens. Thanks in advance.
  18.  
  19. Email response preferred.
  20.  
  21. anderson@cedar.cic.net
  22.